package servidor;

import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import beans.I_RMI;

public class RMI_ServidorSemRegistry {
	private Registry registry;
    public RMI_ServidorSemRegistry(String porta) throws RemoteException {
            I_RMI o = new Logica();
            registry = LocateRegistry.createRegistry(Integer.parseInt(porta));
            registry.rebind("JogoDeXadrez", o);
            System.out.println("Servidor rodando e OK.");
    }
}
